package com.android.job.logic;

import android.os.Handler;

import com.android.job.fusion.FusionCode;
import com.android.job.service.Request;
import com.android.job.service.request.InterviewRequest;

public class InterviewLogic
{
	private static InterviewLogic instance;

	private final static String URL = "http://192.168.10.221:8080/employment/protocol.do";

	private InterviewLogic()
	{

	}

	public synchronized static InterviewLogic getInstance()
	{
		if (instance == null)
		{
			instance = new InterviewLogic();
		}
		return instance;
	}

	public Request interview(Handler handler, String companyId,
			String personnelId ,String postId)
	{
		InterviewRequest interview = new InterviewRequest(handler, FusionCode.URL);
		interview.setValues(companyId  ,personnelId,postId);
		interview.getJSONResponse();
		return interview;
	}
}
